package com.junko.dao.back;

import com.junko.core.base.BaseDao;
import com.junko.model.back.Admin;
import org.springframework.stereotype.Repository;

@Repository
public class AdminDao extends BaseDao<Admin> {

    public Admin findByAccount(String account){
        return getSqlSession().selectOne(this.getNameSpace() + ".findByAccount", account);
    }
    public Admin findByNickname(String nickname){
        return getSqlSession().selectOne(this.getNameSpace() + ".findByNickname", nickname);
    }

}